package com.jike.jkgame.db;

import android.database.sqlite.SQLiteDatabase;

public class SkillsTable {

	public static final String TABLE_NAME = "skills";
	private static final String CREATE_TABLE = "create table "
			+ TABLE_NAME
			+ " (_id  integer primary key autoincrement, "
			+ "id integer, descript text, attack_addon integer, defense_addon integer, "
			+ "strength_addon integer, country integer, country_addon integer, "
			+ "opponent integer, opponent_addon integer, condition text);";

	public static void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_TABLE);
	}

	public static void onUpgrade(SQLiteDatabase db, int oldVersion,
			int newVersion) {
		db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
		onCreate(db);
	}
}
